<template>
	<view class="content">
		<!-- 不显示热门 -->
		<view class="top_head"></view>
		<nyncitylist :hot="false" @bindCity="bindCity"></nyncitylist>
	</view>
</template>

<script>
	import nyncitylist from '@/components/nyn-city-list/nyn-city-list.vue'
	export default {
		components:{
			nyncitylist
		},
		methods:{
			//点击城市时触发,event = {id,name,spell}
			bindCity(event){
				console.log(event)
				var me = this
				let contury = event.spell
				uni.showToast({
					title:contury,
				})
				
				getApp().globalData.text = event.name,
				getApp().globalData.languange = event.spell
				uni.switchTab({
					// url:'/pages/tabBre/CrossBorder/CrossBorder',
					url: '/pages/tabBer/CrossBorder/CrossBorder'
					
				})
			}
		}
	}
</script>

<style scoped>
	.content{
		margin: 0;
	}
	.gobakc{
		display: flex;
		width: 100%;
		justify-content: left;
		height: 60upx;
		font-size: 32upx;
	}
</style>
